package pyip.lib.javalearn.aop.dynamicproxy.spring.aspectj.xml;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import pyip.lib.javalearn.aop.dynamicproxy.Greeting;

public class Client {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("pyip/lib/javalearn/aop/dynamicproxy/spring/aspectj/xml/aop-aspectjxml.xml");
        Greeting greeting = (Greeting) context.getBean("greetingXmlImpl");
        greeting.sayHello("Jack");

        ((ClassPathXmlApplicationContext) context).close();
    }
}